package com.llbnk.springcoding.thread;

public class ThreadEnum {

    public enum ThreadExcutorName {

        THREAD_POOL_NAME_PREFIX("thread.pool.name."),
        ;

        private String value;

        ThreadExcutorName(String value) {
            this.value = value;
        }

        public String getValue() {
            return value;
        }

    }

    public enum ThreadExcutorError {

        POOL_NAME_IS_INVALID("pool name is invalid",10000),
        POOL_PARAMS_IS_ILLEGAL("poll params is illegal",10001),
        POOL_IS_REPEATED("pool  is repeated",10002)
        ;

        private String value;

        private Integer code;

        ThreadExcutorError(String value,Integer code) {
            this.value = value;
            this.code = code;
        }

        public String getValue() {
            return value;
        }

        public Integer getCode() {
            return code;
        }
    }


}
